﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

    public class RegisterBAL
    {
        private RegisterDAL _RegisterDal;

        public RegisterBAL() : this(new RegisterDAL()) { }
        public RegisterBAL(RegisterDAL RegisterDAL) { _RegisterDal = RegisterDAL; }


    public int InsertRegistration(RegisterBO Register)
    {

        try
        {
           
            return _RegisterDal.CreateAccount(Register);



        }
        catch (Exception ex)
        {
            throw ex;


        }
        finally
        {

            _RegisterDal = null;

        }
    }
    public DataTable AccFillDropDown()
    {

       
        try
        {

            return _RegisterDal.AccountFillDropDown();

        }

        catch
        {

            throw;

        }

        finally
        {

            _RegisterDal = null;

        }

    }
    
    }

